<script setup lang="ts">
import {  scoutParamsType } from '@renderer/views/multiScanSeriesPage/helper/types'


const {
  series
} = defineProps(['series'])


</script>

<template>
  <el-form class="flex flex-col"
           label-width="110px"
           label-position="left"
           >
    <el-form-item label="seriesName">
      <el-input
        size="large"
        :max="160"
        :min="0"
        v-model="series.scanSeriesName" controls-position="right" />
    </el-form-item>

    <el-form-item label="kv" class="flex-1">
      <el-select size="large" v-model="series.params.kV.value"
      >
        <el-option v-for="item in  scoutParamsType['kV'].values" :label="item" :value="item" />
      </el-select>
    </el-form-item>


    <el-form-item label="mA" class="flex-1">
      <el-select size="large" v-model="series.params.mA.value"
      >
        <el-option v-for="item in  scoutParamsType['mA'].values" :label="item" :value="item" />
      </el-select>
    </el-form-item>


    <el-form-item label="scoutType" class="flex-1">
      <el-select size="large" v-model="series.params.scoutType.value"
      >
        <el-option v-for="item in scoutParamsType['scoutType'].values" :label="item" :value="item" :key="item" />
      </el-select>
    </el-form-item>


    <el-form-item label="start">
      <el-input
        :disabled="scoutParamsType['start'].disabled"
        size="large"
        :max="scoutParamsType['start'].limit?.max"
        :min="scoutParamsType['start'].limit?.min"
        :precision="scoutParamsType['start'].limit?.precision"
        v-model="series.params['start'].value" controls-position="right" />
    </el-form-item>

    <el-form-item label="end">
      <el-input
        :disabled="scoutParamsType['end'].disabled"
        size="large"
        :max="scoutParamsType['end'].limit?.max"
        :min="scoutParamsType['end'].limit?.min"
        :precision="scoutParamsType['end'].limit?.precision"
        v-model="series.params['end'].value" controls-position="right" />
    </el-form-item>


  </el-form>
</template>

<style scoped>

</style>
